package com.smart.model.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.smart.common.domain.BaseEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author zyh
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("manage_temp_user_registration")
public class ManageTempUserRegistrationDO extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    /** 项目id */
    @TableField("project_id")
    private Long projectId;
    /** 进出场临时人员姓名 */
    @TableField("user_name")
    private String userName;
    /** 进出场临时人员手机 */
    @TableField("user_phone")
    private String userPhone;
    /** 身份证号码 */
    @TableField("id_number")
    private String idNumber;
    /** 常驻地址 */
    @TableField("address")
    private String address;
    /** 常驻详细地址 */
    @TableField("address_details")
    private String addressDetails;
    /** 接待人 */
    @TableField("receiver")
    private String receiver;
    /** 是否离场（0离场 1在场） */
    @TableField("leave_or_not")
    private Integer leaveOrNot;
    /** 离场出口 */
    @TableField("approach_address")
    private Long approachAddress;
    /** 离场时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("approach_time")
    private Date approachTime;
    /** 入场入口 */
    @TableField("entrance_address")
    private Long entranceAddress;
    /** 入场时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("entrance_time")
    private Date entranceTime;
    /** 省 */
    @TableField("province")
    private String province;
    /** 市 */
    @TableField("city")
    private String city;
    /** 区 */
    @TableField("area")
    private String area;
}
